<?php

namespace Sim\SimBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class ActividadType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('actividad')
            ->add('cant_hombres')
            ->add('cant_dias')
            ->add('horas_dia')
            ->add('tarifa')
            ->add('producto')
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Sim\SimBundle\Entity\Actividad'
        ));
    }

    public function getName()
    {
        return 'sim_simbundle_actividadtype';
    }
}
